package com.heima.feign.api;

import com.heima.model.article.dto.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 定义feign接口以及降级类
 * @author Administrator
 */
@FeignClient(value = "leadnews-article")
public interface ApArticleFeignCient {

    @PostMapping(path = "/api/v1/article/save")
    public ResponseResult saveArticle(@RequestBody ArticleDto dto);

}